package com.barber.entity;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;

@Alias("Barber")
//缓存x
public class Barber implements Serializable {
    private  int id;
    private  String username ;//String 数据类型
    private  String password;
    private  String levelname ;
    private  String sex;
    private  String hireTime;
    private  int phone;




    @Override
    public String toString() {
               return "{" +
                "\"id\":\""+ id +"\","+
                "\"username\":\""+ username +"\","+
                "\"password\":\""+ password +"\","+
                "\"levelname\":\""+ levelname +"\","+
                "\"sex\":\""+ sex +"\","+
                "\"hireTime\":\""+ hireTime +"\","+
                "\"phone\":\""+ phone +"\""+
                "}";
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getLevelname() {
        return levelname;
    }

    public void setLevelname(String levelname) {
        this.levelname = levelname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHireTime() {
        return hireTime;
    }

    public void setHireTime(String hireTime) {
        this.hireTime = hireTime;
    }

    public int getPhone() {
        return phone;
    }

    public void setPhone(int phone) {
        this.phone = phone;
    }
}
